package com.hbnu.thread;

/**
 * @author kittychen
 * @since 2025-10-27 19:53
 */
public class Consumer implements Runnable {

    private Box box;

    public Consumer(Box box) {
        this.box = box;
    }
    @Override
    public void run() {
        while (true) {
            box.get();
        }
    }
}
